<template>
    <iframe :url="url" class="frame" width="100%" height="100%" onerror="onError"></iframe>
</template>
<script setup>
import { useRoute } from "vue-router";

const route = useRoute();
const url = route.query.url;

function onError(e) {
    console.log(e);
}
</script>

<style lang="scss" scoped>
.frame {
    border: none;
}
</style>
